<script setup>
import  useAgeStore  from './store/user'; // 引入store

const useAge = useAgeStore()

const incrementAge = () =>{
  useAge.updateage()
}
</script>

<template>
  <div>
    <p>年龄: {{ useAge.age }}</p >
    <button @click="incrementAge">年龄+</button>
  </div>
</template>

